<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            list-style: none;
        }
        .d1{
            height: 500px;
            width: 500px;
            background-color: lightblue;
            margin: 0px auto;
        }
        .d2{
            height: 100px;
            width: 100px;
            text-align: center;
            background-color: lightpink;
            position: absolute;
            left: 50%;
            margin-left: -50px;
            
            margin-top: 200px;

        }
        .d2 li{
            padding-top: 35px;
        }
    </style>
</head>
<body>
    <div class="d1">
        <div class="d2"><li>我是你爹</li></div>
    </div>
</body>
</html>